import request from '@/utils/request'


// 获取标注图
export function getTagImage(query) {
  return request({
    url: '/material/imageDrawer/showPreview',
    method: 'get',
    params: query
  })
}

// 查询标记文件信息列表
export function listTag_file(query) {
  return request({
    url: '/material/tag_file/list',
    method: 'get',
    params: query
  })
}

// 查询标记文件信息详细
export function getTag_file(id) {
  return request({
    url: '/material/tag_file/' + id,
    method: 'get'
  })
}

// 新增标记文件信息
export function addTag_file(data) {
  return request({
    url: '/material/tag_file',
    method: 'post',
    data: data
  })
}

// 修改标记文件信息
export function updateTag_file(data) {
  return request({
    url: '/material/tag_file',
    method: 'put',
    data: data
  })
}

// 删除标记文件信息
export function delTag_file(id) {
  return request({
    url: '/material/tag_file/' + id,
    method: 'delete'
  })
}

// 导出标记文件信息
export function exportTag_file(query) {
  return request({
    url: '/material/tag_file/export',
    method: 'get',
    params: query
  })
}
